package com.example.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 *
 * @author weijingchen
 * @DateTime 2025-09-24
 */
@Data
public class UserDto {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 5, max = 16, message = "用户名必须在5-16位字符之间")
    private String username;//用户名
    @Size(min = 5, max = 16, message = "密码必须在5-16位字符之间")
    private String password;//密码
    @Size(min = 1, max = 10, message = "昵称必须在5-16位字符之间")
    private String nickname;//昵称
    @Email(message = "邮箱格式错误")
    private String email;//邮箱
    private String userPic;//用户头像地址
}
